package cn.gok.test;

import cn.gok.entity.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
    测试注入其他的数据类型的值
 */

public class SpringTest06 {
    public static void main(String[] args) throws InterruptedException {
        ApplicationContext app  = new ClassPathXmlApplicationContext("application03.xml");

        Student student1 = app.getBean("student1", Student.class);
        System.out.println(student1);


        Student student2 = app.getBean("student2", Student.class);
        System.out.println(student2);


        Student student3 = app.getBean("student3", Student.class);
        System.out.println(student3);

        Student student4 = app.getBean("student4", Student.class);
        System.out.println(student4);
    }
}
